#ifndef _SFS_NAME_SVR_COMMON_H_
#define _SFS_NAME_SVR_COMMON_H_

#define NS_CMD_CREATE_FILE 1
#define NS_CMD_DELETE_FILE 2
#define NS_CMD_CREATE_DIR 3
#define NS_CMD_DELETE_DIR 4
#define NS_CMD_GET_FILE_METADATA_INFO 5
#define NS_CMD_ALLOC_MDS_4_NEW_FILE 6
#define NS_CMD_QUERY_IS_FILE_EXIST 7
#define NS_CMD_QUERY_IS_DIR_EXIST 8
#define NS_CMD_READ_DIR 9


#define NS_ERR_INVALID_ARGS -1
#define NS_ERR_OS_FILE_OP_ERR -2
#define NS_ERR_FILE_ALREADY_EXIST -3
#define NS_ERR_TARGET_NOT_A_FILE -4
#define NS_ERR_FILE_NOT_EXIST -5
#define NS_ERR_DIR_ALREADY_EXIST -6
#define NS_ERR_OS_DIR_OP_ERR -7
#define NS_ERR_OUTER_SERVICE_ERR -8

#define NS_ERR_CLIENT_DETECTED_INVALID_ARGS -100
#define NS_ERR_CLIENT_TO_SVR_NETWORK_ERR -101
#define NS_ERR_INVALID_RESPONSE -102

#define NS_ERR_UNKNOWN_ERR -1000

#endif
